<?php
namespace app\common\controller;


use think\Controller;
use think\facade\Session;

/*
 * 前台控制器基类
 */
class Base extends Controller
{
    protected $beforeActionList = [
        'checkLogin' => ['except'=>['verify','register','registerdo','login','logindo','logout']],
    ];

    public function checkLogin()
    {
        if (null === Session::get('user')) {
            $this->redirect('User/login');
        }
    }
}